<%--
  Created by IntelliJ IDEA.
  User: xianfei
  Date: 15-7-21
  Time: 下午3:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>仙飞</title>
    <link rel="stylesheet" type="text/css" href="/static/editTool/fontawesome-4.2.0/css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="/static/editTool/css/wangEditor-1.1.0-min.css">
    <script type="text/javascript" src='/static/editTool/js/wangEditor-1.1.0-min.js'></script>
    <script>
        $(function () {
            var editor = $("#txtDiv").wangEditor();
            $("#submit").click(function () {
                console.log($(editor).html());
            })
        })
    </script>
    <script language="JavaScript" type="text/javascript">
        var browser = {
            versions: function () {
                var u = navigator.userAgent, app = navigator.appVersion;
                return {//移动终端浏览器版本信息
                    trident: u.indexOf('Trident') > -1, //IE内核
                    presto: u.indexOf('Presto') > -1, //opera内核
                    webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核
                    gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, //火狐内核
                    mobile: !!u.match(/AppleWebKit.*Mobile.*/) || !!u.match(/AppleWebKit/), //是否为移动终端
                    ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端
                    android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或者uc浏览器
                    iPhone: u.indexOf('iPhone') > -1 || u.indexOf('Mac') > -1, //是否为iPhone或者QQHD浏览器
                    iPad: u.indexOf('iPad') > -1, //是否iPad
                    webApp: u.indexOf('Safari') == -1 //是否web应该程序，没有头部与底部
                };
            }(),
            language: (navigator.browserLanguage || navigator.language).toLowerCase()
        }
        document.writeln("语言版本: " + browser.language);
        document.writeln(" 是否为移动终端: " + browser.versions.mobile);
        document.writeln(" ios终端: " + browser.versions.ios);
        document.writeln(" android终端: " + browser.versions.android);
        document.writeln(" 是否为iPhone: " + browser.versions.iPhone);
        document.writeln(" 是否iPad: " + browser.versions.iPad);
        document.writeln(navigator.userAgent);
    </script>
</head>
<body>
<form action="http://www.baidu.com/baidu" target="_blank">
    <a href="http://www.baidu.com/"><img src="http://img.baidu.com/img/logo-80px.gif" alt="Baidu" align="bottom" border="0"></a>
    <input type="hidden" name="tn" value="baidu">
    <input type="text" name="word"><input type="submit" value="百度搜索">
</form>
<div>
    副本编辑器:
    <div id="txtDiv" style="width:700px;height:400px;border: 1px black solid"></div>
    <button class="btn btn-info" id="submit">保存</button>
</div>
<myfooter>
    自定义页脚
</myfooter>
</body>
</html>